/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar;

/**
 *
 * @author spok
 */

 public class LevelTimer extends Thread {
     public Level level;
     public int msRefresh;
      
 
     public void run() {
      
        while(true)
        {
           level.clock();
           
           try
           {
                Thread.currentThread().sleep(msRefresh);
           }
            catch(InterruptedException ex) 
           {
            this.stop();
           }
        }
     }
   }
